
<div class="namecard-choosebg" style="background: #fff;">
<div class="namecard-page">
    <section class="choosebg-column js-choosebgColumn">
        <div class="choosebg-title">
            <a ng-class="{'current':pagedata.choose_type==1}" ng-click="pagedata.choose_type=1" href="javascript:;">选择背景图片</a>
            <a ng-class="{'current':pagedata.choose_type==2}" ng-click="pagedata.choose_type=2" href="javascript:;">上传背景图片</a>
        </div>
        <div class="choosebg-conten">
            <div class="choosebg-conten-box" ng-show="pagedata.choose_type==1">
                <ul ng-repeat="item in pagedata.list" class="choosebg-inner clearfix">
                    <li class="choosebg-inner-item ">
                        <a href="javascript:;" ng-click="pagedata.item.bgimg=item.url">
                            <img ng-src="{{item.url}}" class="choosebg-item-thumbnail"></a>

                        <div class="choose-ok"></div>
                    </li>
                 </ul>
            </div>
            <div class="choosebg-conten-box" ng-show="pagedata.choose_type==2">
                <div class="choosebg-upload">
                    <div class="choosebg-upload-box">
                        <a class="upload-btn" ng-click="up_file(pagedata.item,'bgimg','image')">
						<span class="upload-text">点击上传图片</span></a>
                        <div class="uploadbtn"></div>
                    </div>
                </div>
                <section class="fillIn-column avatar-column">
                    <div class="fillIn-avatar">
                        <span id="aaa"></span>
                        <a class="upload-btn" href="#"><i class="ico-upload"></i></a>
                    </div>
                </section>

            </div>
        </div>
        <div class="row">
            <a class="sync-btn" href=""><label for="headUpload">
                <img style="display:block;position: relative;width: 90%;top:20px;left:5%;max-height:90%" id="fileimg"
                ng-src="{{tomedia(pagedata.item.bgimg)}}" width="120px;"class="fillIn-avatar-thumbnail"></label>
			</a>
        </div>
        <div class="urls">
        </div>
    </section>
</div>

<div style="height:80px"></div>
<div class="create-next create-position" id="footerFixed">
    <a class="create-next-btn" href="javascript:;" ng-click="post(pagedata.item,'post')">完 成 </a>
</div>
</div>
